@extends('layouts.csite')
@section('body')
    <div class="container">
        @include('csite.nav')
        <div class="row create">
            <div class="col-md-offset-2 col-md-8">
                <div class="page-header text-success">
                    <h1 class=""><span class="glyphicon glyphicon-apple"></span>企业信息<small>认真填写</small></h1>
                    @if (count($errors) > 0)
                        <div class="alert alert-danger">
                            <ul>
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    @endif
                    <form action="{{ route('csite.truecreate') }}" method="POST" class="form-horizontal">
                        {{ csrf_field() }}
                        <div class="form-group">
                            <label for="name">企业名称</label>
                            <input type="text" name="name" id="name" class="form-control" value="{{ old('name') }}">
                        </div>
                        <div class="form-group">
                            <label for="address">地址</label>
                            <input type="text" name="address" id="address" class="form-control" value="{{ old('address') }}">
                        </div>
                        <div class="form-group">
                            <label for="phone">电话</label>
                            <input type="number" name="phone" id="phone" class="form-control" value="{{ old('number') }}">
                        </div>
                        <div class="form-group">
                            <label for="software" class="control-label col-sm-2">软件名称</label>
                            <div class="col-sm-10">
                                <input type="text" name="software" id="software" class="form-control" value="{{ old('software') }}">
                            </div>
                        </div>
                        <button type="submit" class="btn btn-default center-block">提交</button>
                    </form>

                    @if (session('res'))
                        <div class="alert alert-success">
                            {{ session('res') }}
                        </div>
                    @endif
                </div>  
            </div>
        </div>
    </div>
@endsection